Title: How to Change the Low Stock Email Subject

Publish Date: Wed, 03 Feb 2021 05:05:37 +0000

Categories: Uncategorized

Content:

Unlike other emails, the Low Stock email in WooCommerce does not have configuration options to change the content, the subject, or the recipient.



This might be fine, but as you try to optimize your workflow and make it more efficient, you might want to have more information straight in the subject of the email to quickly know what product is low on stock without having to read the email.



Let's find out how to do it!









Open your functions.php file in wp-content/plugins/your-child-theme-name/ and add this code at the end of the file:




https://gist.github.com/SiR-DanieL/3accbd0c31137d8c966a714ea32627e9




In this example, I replace the word "Product" in the default subject with the actual product name. You can do more and maybe add the current stock:




https://gist.github.com/SiR-DanieL/9bf1d41fca599280de63f185d044aae3




You can get creative here and add as many information as you want. Remember thought that this is just the subject of the email, don't write an essay in it!



Would you like to change also the content of your emails? Check out how to add text to the email body!
